from django.http import JsonResponse



class NotFoudJsonResponr(JsonResponse):

	status_code =400

	def __init__(self,*args,**kwargs):
		data = {
			'err_code' : '400000',
			'msg':'不存在'

		}

		super().__init__(data,*args,**kwargs)



class BadRequestJsonRespones(JsonResponse):
	status_code = 400 

	def __init__(self,err_list=[],*args,**kwargs):
		data = {
			'err_code' : '405000',
			'msg':'格式不对',
			'err_list':err_list
		}

		super().__init__(data,*args,**kwargs)


class MethodNotAllowedJsonRespones(JsonResponse):
	status_code = 405 

	def __init__(self,*args,**kwargs):
		data = {
			'err_code' : '405000',
			'msg':'格式不对',
			
		}

		super().__init__(data,*args,**kwargs)